/* 
 *  Incub - incubate your baby robot
 *  Copyright (C) 2008 Stanislaw Szymczyk
 *  e-mail: sszymczy@gmail.com   www: http://cogville.cog-lab.com
 *
 *  This file is part of Incub.
 *
 *  Incub is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  Incub is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Incub.  If not, see <http://www.gnu.org/licenses/>.
 * 
 */
 
#ifndef CAMERA_H_
#define CAMERA_H_

#include <string>
#include "Sensor.h"

class Camera : public Sensor {
	public:
	enum camera_t { MONO, COLOR, DEPTH };
	private:
	bool display;
	camera_t type;
	int horiz_res, vert_res;
	void reallocateBuffer();
	unsigned char *buffer;
	float zNear, zFar;
	public:
	Camera();
	~Camera();
	void setDisplay(std::string dis);
	bool getDisplay();
	void setType(std::string t);
	camera_t getType();
	void setResolution(std::string res);
	int getHorizontalResolution();
	int getVerticalResolution();
	void* getBuffer();
	int getDepth();
	void setZNear(std::string res);
	float getZNear();
	void setZFar(std::string res);
	float getZFar();	
};

#endif /*CAMERA_H_*/
